<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<%@ include file="/WEB-INF/views/include/head.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link href="${ctxStatic}/common/images/logo.ico" rel="shortcut icon" type="image/x-icon"/>
    <script src="${ctxStatic}/common/js/cloud.js" type="text/javascript"></script>
    <title>城市交通信号控制系统</title>
    <script type="text/javascript">
        $(function () {
            $('.loginbox').css({
                'position': 'absolute',
                'left': ($(window).width() - 692) / 2
            });
            $(window).resize(function () {
                $('.loginbox').css({
                    'position': 'absolute',
                    'left': ($(window).width() - 692) / 2
                });
            });
        });
        document.onkeydown = function (event) {
            var e = event || window.event || arguments.callee.caller.arguments[0];
            if ($("#message").is(":hidden")) {
                if (e && e.keyCode == 13) { // enter 键
                    $(".loginbtn").click();
                }
            }
        };
    </script>
</head>
<body style="background: #1c77ac url(${ctxStatic}/common/images/light.png) no-repeat center top;overflow: hidden;">
<div id="mainBody">
    <div id="cloud1" class="cloud"></div>
    <div id="cloud2" class="cloud"></div>
</div>
<div class="logintop">
    <span>欢迎登录—城市交通信号控制系统</span>
    <ul>
        <li><a id="help" href="#">帮助</a></li>
        <li><a href="#" id="about">关于</a></li>
    </ul>
</div>
<div class="loginbody">
    <span class="systemlogo"></span>
    <div class="loginbox">
        <form action="${ctx}/login" method="post">
            <div>
                <input id="username" name="username" type="text" class="loginuser" value="Admin" />
            </div>
            <div>
                <input id="password" name="password" type="password" class="loginpwd" value="123456" />
            </div>
            <div>
                <input type="submit" class="loginbtn" value="登录" />
            </div>
        </form>
    </div>
</div>
</body>
</html>